<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglibs.jsp"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<meta charset="utf-8">
	<title>呼叫中心结点</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" href="${ctxLayui}/layuiadmin/layui/css/layui.css" media="all">
	<link rel="stylesheet" href="${ctxLayui}/layuiadmin/style/myStyle.css" media="all">
</head>
<body>
<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 10px 0 0;">
	<script id="formTpl" type="text/html">

		<div class="layui-form-item-my" >
			<label class="layui-form-label">结点名称</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.name}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">所有地区</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.region}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">Ip</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.ip}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">端口</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.port}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">Ip地址</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.ipAddress}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">数量</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.numberStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">联系人</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.contacts}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">联系电话</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.mobile}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">状态;1-正常;2-停用</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.statusStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">坐席类型;1-有吖;2-群鸿</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.seatTypeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">创建时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.createTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">修改时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.modifyTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">结点说明</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.remark}}</div>
			</div>
		</div>
	</script>
	<div id="form_view"></div>

</div>

<script src="${ctxLayui}/layuiadmin/layui/layui.js"></script>
<script>
	layui.config({
		base: '${ctxLayui}/layuiadmin/'
	}).extend({
		index: 'lib/index'
	}).use(['index', 'form','dict','laytpl','util'], function(){
		var $ = layui.$ ,form = layui.form;
		var dict = layui.dict;
		var laytpl = layui.laytpl;
		var util = layui.util;
		var formData = window.parent.formData;
		formData.numberStr = formData.number?dict.showName("number",formData?formData.number:1):'';
		formData.statusStr = formData.status?dict.showName("status",formData?formData.status:1):'';
		formData.seatTypeStr = formData.seatType?dict.showName("seatType",formData?formData.seatType:1):'';
		formData.createTimeStr = formData.createTime?util.toDateString(formData.createTime):'';
		formData.modifyTimeStr = formData.modifyTime?util.toDateString(formData.modifyTime):'';
		var data = formData;
		var getTpl = formTpl.innerHTML,view = document.getElementById('form_view');
		laytpl(getTpl).render(data, function(html){
			view.innerHTML = html;
		});
	})
</script>
</body>
</html>
